﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.IO;

namespace DebugOnly
{
    class Program
    {
        static void Main(string[] args)
        {
            WriteLog("ets");
            Console.ReadLine();
        }

        [Conditional("DEBUG")]
        private static void RunInDebug()
        {
            Console.WriteLine("This is in debug mode");
        }

        public static void WriteLog(string readme)
        {
            string log = @"log.txt";
            StreamWriter dout = new StreamWriter(log,true);
            dout.Write("\r\n[" + System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "]:\t" + readme + "\r\n");
            //debug==================================================   
            dout.Close();
        }
    }
}
